//
//  UIKit+MKUIThemeElement.m
//  MKUI
//
//  Created by 苏尚进 on 2021/3/21.
//  Copyright © 2021 moon. All rights reserved.
//

#import "UIKit+MKUIThemeElement.h"
#import "MKUIThemeCenterElement.h"


@implementation UIColor (MKUIThemeElement)
+ (id<MKUIThemeElementProtocol>)mktheme_colorNamed:(NSString *)name{
    return [MKUIThemeCenterElement themeElementForKey:name];
}
@end

@implementation UIImage (MKUIThemeElement)
+ (id<MKUIThemeElementProtocol>)mktheme_imageNamed:(NSString *)name{
    return [MKUIThemeCenterElement themeElementForKey:name];
}
@end

@implementation NSString (MKUIThemeElement)
+ (id<MKUIThemeElementProtocol>)mktheme_stringNamed:(NSString *)name{
    return [MKUIThemeCenterElement themeElementForKey:name];
}
@end

@implementation UIFont (MKUIThemeElement)
+ (id<MKUIThemeElementProtocol>)mktheme_fontNamed:(NSString *)name{
    return [MKUIThemeCenterElement themeElementForKey:name];
}
@end

#import "MKUIThemeCenterElement.h"
id<MKUIThemeElementProtocol> mktheme_NSIntegerWithName(NSString * _Nonnull name){
    return [MKUIThemeCenterElement themeElementForKey:name];
}
id<MKUIThemeElementProtocol> mktheme_CGFloatWithName(NSString * _Nonnull name){
    return [MKUIThemeCenterElement themeElementForKey:name];
}
id<MKUIThemeElementProtocol> mktheme_UIEdgeInsetsWithName(NSString * _Nonnull name){
    return [MKUIThemeCenterElement themeElementForKey:name];
}
id<MKUIThemeElementProtocol> mktheme_CGSizeWithName(NSString * _Nonnull name){
    return [MKUIThemeCenterElement themeElementForKey:name];
}
